package com.test.logisticsservice.Listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@org.springframework.amqp.rabbit.annotation.RabbitListener(queues = "order")
public class RabbitListener {
    @RabbitHandler
    public void listener1(String message) {
        log.info("listener1接收到:" + message);
    }

    @RabbitHandler
    public void listener2(){
        log.info("");
    }
}
